//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['That Nu-Metal Band','Starland Ballroom','Sayreville, NJ','Friday','5/3/2024','7:30 PM','6298386','That-Nu-Metal-Band-5-3-2024'],['Hawthorne Heights','Starland Ballroom','Sayreville, NJ','Saturday','5/4/2024','8:00 PM','6253722','Hawthorne-Heights-5-4-2024'],['Whiskey Crossing','Starland Ballroom','Sayreville, NJ','Friday','5/10/2024','8:00 PM','6283966','Whiskey-Crossing-5-10-2024'],['Thy Art Is Murder','Starland Ballroom','Sayreville, NJ','Saturday','5/11/2024','7:00 PM','6254107','Thy-Art-Is-Murder-5-11-2024'],['Avatar','Starland Ballroom','Sayreville, NJ','Sunday','5/12/2024','7:30 PM','6262153','Avatar-5-12-2024'],['City Morgue','Starland Ballroom','Sayreville, NJ','Thursday','5/16/2024','8:00 PM','6116753','City-Morgue-5-16-2024'],['Our Last Night','Starland Ballroom','Sayreville, NJ','Friday','5/17/2024','7:15 PM','6014821','Our-Last-Night-5-17-2024'],['Cooper Alan','Starland Ballroom','Sayreville, NJ','Saturday','5/18/2024','8:00 PM','6192518','Cooper-Alan-5-18-2024'],['P.O.D.','Starland Ballroom','Sayreville, NJ','Sunday','5/19/2024','7:00 PM','6292209','P-O-D--5-19-2024'],['CKY','Starland Ballroom','Sayreville, NJ','Friday','5/24/2024','7:30 PM','6307183','CKY-5-24-2024'],['Overkill','Starland Ballroom','Sayreville, NJ','Saturday','6/1/2024','7:45 PM','6374942','Overkill-6-1-2024'],['Steven Adler','Starland Ballroom','Sayreville, NJ','Friday','6/28/2024','8:00 PM','6330470','Steven-Adler-6-28-2024'],['Tom Keifer Band','Starland Ballroom','Sayreville, NJ','Thursday','7/25/2024','8:00 PM','6330815','Tom-Keifer-Band-7-25-2024'],['Idobi Summer School','Starland Ballroom','Sayreville, NJ','Saturday','7/27/2024','6:00 PM','6355372','Idobi-Summer-School-7-27-2024'],['Fear','Starland Ballroom','Sayreville, NJ','Saturday','8/3/2024','7:30 PM','6403135','Fear-8-3-2024'],['Summer Slaughter Tour','Starland Ballroom','Sayreville, NJ','Friday','8/9/2024','3:30 PM','6406569','Summer-Slaughter-Tour-8-9-2024'],['Manchester Orchestra','Starland Ballroom','Sayreville, NJ','Sunday','9/8/2024','8:00 PM','6354677','Manchester-Orchestra-9-8-2024'],['Hawthorne Heights','Starland Ballroom','Sayreville, NJ','Wednesday','9/11/2024','5:30 PM','6385605','Hawthorne-Heights-9-11-2024'],['Mushroomhead','Starland Ballroom','Sayreville, NJ','Wednesday','10/9/2024','6:45 PM','6416110','Mushroomhead-10-9-2024'],['Social Distortion','Starland Ballroom','Sayreville, NJ','Sunday','10/13/2024','8:00 PM','5639802','Social-Distortion-10-13-2024'],['Nate Smith','Starland Ballroom','Sayreville, NJ','Saturday','11/9/2024','8:00 PM','6381585','Nate-Smith-11-9-2024'],['Underoath','Starland Ballroom','Sayreville, NJ','Wednesday','12/4/2024','7:50 PM','6383907','Underoath-12-4-2024']],'Starland Ballroom','http://www.ticketnetwork.com/ticket/Starland-Ballroom-events.aspx');